﻿namespace XUCore.NetCore.Uploads
{
    /// <summary>
    /// 图片上传请求配置
    /// </summary>
    public class ImageUploadRequest : ImageUploadRequestBase
    {
        /// <summary>
        /// 允许上传的文件扩展名
        /// </summary>
        public string[] Extensions { get; set; } = new string[] { "gif", "jpg", "jpeg", "png", "bmp" };

        /// <summary>
        /// 允许上传的图片文件大小，默认2M
        /// </summary>
        public long Size { get; set; } = 1024 * 1024 * 5;
    }
}